package com.ruoyi.core.domain;

import java.util.Date;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 礼品卡对象 gift_card
 * 
 * @author lgc
 * @date 2020-08-08
 */
public class GiftCard extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    @Excel(name = "ID")
    private Long giftCardId;

    /** 礼品id */
    @Excel(name = "礼品id")
    private Integer productId;

    /** 礼品卡编号 */
    @Excel(name = "礼品卡编号")
    private String code;

    /** 密码 */
    @Excel(name = "密码")
    private String fwCode;

    /** 创建人 */
    private Long createdBy;

    /** 创建时间 */
    private Date createdDate;

    /** 最后更新人 */
    @Excel(name = "最后更新人")
    private Long lastUpdatedBy;

    /** 最后更新时间 */
    @Excel(name = "最后更新时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date lastUpdatedDate;

    /** 是否删除 */
    @Excel(name = "是否删除")
    private Long isDeleted;

    /** 生效开始日期 */
    @Excel(name = "生效开始日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date startDate;

    /** 生效结束日期 */
    @Excel(name = "生效结束日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date endDate;

    /** 是否使用 */
    @Excel(name = "是否使用")
    private Integer isUsed;

    public void setGiftCardId(Long giftCardId) 
    {
        this.giftCardId = giftCardId;
    }

    public Long getGiftCardId() 
    {
        return giftCardId;
    }
    public void setProductId(Integer productId) 
    {
        this.productId = productId;
    }

    public Integer getProductId() 
    {
        return productId;
    }
    public void setCode(String code) 
    {
        this.code = code;
    }

    public String getCode() 
    {
        return code;
    }
    public void setFwCode(String fwCode) 
    {
        this.fwCode = fwCode;
    }

    public String getFwCode() 
    {
        return fwCode;
    }
    public void setCreatedBy(Long createdBy) 
    {
        this.createdBy = createdBy;
    }

    public Long getCreatedBy() 
    {
        return createdBy;
    }
    public void setCreatedDate(Date createdDate) 
    {
        this.createdDate = createdDate;
    }

    public Date getCreatedDate() 
    {
        return createdDate;
    }
    public void setLastUpdatedBy(Long lastUpdatedBy) 
    {
        this.lastUpdatedBy = lastUpdatedBy;
    }

    public Long getLastUpdatedBy() 
    {
        return lastUpdatedBy;
    }
    public void setLastUpdatedDate(Date lastUpdatedDate) 
    {
        this.lastUpdatedDate = lastUpdatedDate;
    }

    public Date getLastUpdatedDate() 
    {
        return lastUpdatedDate;
    }
    public void setIsDeleted(Long isDeleted) 
    {
        this.isDeleted = isDeleted;
    }

    public Long getIsDeleted() 
    {
        return isDeleted;
    }
    public void setStartDate(Date startDate) 
    {
        this.startDate = startDate;
    }

    public Date getStartDate() 
    {
        return startDate;
    }
    public void setEndDate(Date endDate) 
    {
        this.endDate = endDate;
    }

    public Date getEndDate() 
    {
        return endDate;
    }
    public void setIsUsed(Integer isUsed) 
    {
        this.isUsed = isUsed;
    }

    public Integer getIsUsed() 
    {
        return isUsed;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("giftCardId", getGiftCardId())
            .append("productId", getProductId())
            .append("code", getCode())
            .append("fwCode", getFwCode())
            .append("createdBy", getCreatedBy())
            .append("createdDate", getCreatedDate())
            .append("lastUpdatedBy", getLastUpdatedBy())
            .append("lastUpdatedDate", getLastUpdatedDate())
            .append("isDeleted", getIsDeleted())
            .append("startDate", getStartDate())
            .append("endDate", getEndDate())
            .append("isUsed", getIsUsed())
            .toString();
    }
}
